package com.example.service.impl;

import com.example.mapper.fixtureChecklistMapp;
import com.example.pojo.fixtureChecklistPojo;
import com.example.pojo.precisionMeasResultPojo;
import com.example.service.fixtureChecklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;

/**
 * ClassName:fixtureChecklistImpl
 * Package:com.example.service.impl
 * Description:
 *
 * @Author：牧星苑
 * @Create 2025/9/4 14:34
 * @Version 1.0
 */
@Service
public class fixtureChecklistImpl implements fixtureChecklistService {
    @Autowired
    private fixtureChecklistMapp fixtureChecklistMapp;
    @Override
    public void insertSeveralRows(List<fixtureChecklistPojo> pojoList){
        for (int i = 0; i < pojoList.size(); i++) {
            //设置创立时间
            pojoList.get(i).setUpdate_time(LocalDateTime.now());
            pojoList.get(i).setCreate_time(LocalDateTime.now());
        }
        fixtureChecklistMapp.insertSeveralRows(pojoList);
    }
}
